package com.yricky.memoria.activity

import android.app.Activity
import android.hardware.Camera
import android.os.Bundle
import androidx.activity.result.contract.ActivityResultContracts
import androidx.appcompat.app.AppCompatActivity
import java.io.File

/**
 * @author Yricky
 * @date 2021/11/28
 */
class ActionActivity:BaseActivity() {

//    override fun onCreate(savedInstanceState: Bundle?) {
//        super.onCreate(savedInstanceState)
//        when(intent.getStringExtra("for")){
//            "video" -> callCaptureVideo()
//            "photo" -> callCaptureImage()
//        }
//    }
//
//    private fun callCaptureVideo(){
//        val videoFile = File.createTempFile("${System.currentTimeMillis()}",".mp4",
//            globalContext.getExternalFilesDir("videos"))
//        finishOnSuccessLauncher.launch(videoFile.captureVideoIntoItIntent())
//    }
//
//    private fun callCaptureImage(){
//        val photoFile = File.createTempFile("${System.currentTimeMillis()}",".png",
//            globalContext.getExternalFilesDir("pictures"))
//        finishOnSuccessLauncher.launch(photoFile.captureImageIntoItIntent())
//    }

}